package com.qipa.service;

import com.baomidou.framework.service.ISuperService;
import com.qipa.entity.BSGridPage;
import com.qipa.utils.QueryFilter;

import java.util.List;


/**
 * Created by Administrator on 2016-05-24.
 */
public interface IBaseService<T> extends ISuperService<T> {

    BSGridPage<T> getBSPage(BSGridPage<T> bsGridPage);

    BSGridPage<T> getBSPage(BSGridPage<T> bsGridPage, QueryFilter queryFilter);


    /**
     * 根据ID批量删除
     *
     * @param ids （id,多个用","好隔开）
     * @return
     */
    boolean deleteBatchByIds(String ids);

    List<T> selectList(T t);

    List<T> selectList(T t, String orderBy, boolean isAsc);

    T selectFirst(T t);
}

